layui.extend(
    {
        "xls_format":"lay/modules/xls_format"
    }
).define(["xls_format"], function(exports){
    var xls_format = layui.xls_format;
    exports("xls",{
        recharge_details:[[
            {field:'xh', title:'序号', align:'center', type:'numbers'},
            {field:'amount', title:'金额', align:'center', sort:true, templet:function(d){return xls_format.format_amount(d.amount);}},
            {field:'type', title:'充值方式', align:'center', templet:function(d){return xls_format.format_paytype(d.type);}},
            {field:'time', title:'时间', align:'center', sort:true, templet:function(d){return xls_format.format_time(d.time);}},
            {field:'worker', title:'操作员', align:'center'}
        ]],
        consumption_details:[[
            {field:'xh', title:'序号', align:'center', type:'numbers'},
            {field:'amount', title:'金额', align:'center', sort:true, templet:function(d){return xls_format.format_amount(d.amount);}},
            {field:'type', title:'支付类型', align:'center'},
            {field:'time', title:'时间', align:'center', sort:true, templet:function(d){return xls_format.format_time(d.time);}},
            {field:'attach', title:'备注', align:'center'},
            {field:'worker', title:'操作员', align:'center'}
        ]],
        cash_details:[[
            {field:'xh', title:'序号', align:'center', type:'numbers'},
            {field:'amount', title:'金额', align:'center', sort:true, templet:function(d){return xls_format.format_amount(d.amount);}},
            {field:'time', title:'时间', align:'center', sort:true, templet:function(d){return xls_format.format_time(d.time);}},
            {field:'type', title:'提取方式', align:'center', sort:true, templet:function(d){return xls_format.format_paytype(d.type);}},
            {field:'name', title:'姓名', align:'center'},
            {field:'account', title:'账户', align:'center'},
            {field:'attach', title:'备注', align:'center'},
            {field:'status', title:'状态', align:'center', sort:true, templet:function(d){return xls_format.format_ext_status(d.status);}},
            {field:'worker', title:'操作员', align:'center', sort:true}
        ]],
        scores_consumption_details:[[
            {field:'xh', title:'序号', align:'center', type:'numbers'},
            {field:'scores', title:'积分', align:'center', sort:true},
            {field:'type', title:'类型', align:'center', sort:true},
            {field:'time', title:'时间', align:'center', sort:true, templet:function(d){return xls_format.format_time(d.time);}}
        ]],
        scores_simple_details:[[
            {field:'xh', title:'序号', align:'center', type:'numbers'},
            {field:'scores', title:'积分', align:'center', sort:true},
            {field:'type', title:'类型', align:'center', sort:true},
            {field:'time', title:'时间', align:'center', sort:true, templet:function(d){return xls_format.format_time(d.time);}}
        ]]
    })
})